import {createStore, applyMiddleware, compose, combineReducers} from 'redux';
import mainReducer from './Reducer';

const reducers = combineReducers(
    mainReducer
);

//参数配置，reducer函数，初始化对象，enhance增强组件
const store = createStore(reducers, window.__REDUX_DEVTOOLS_EXTENSION__ && window.__REDUX_DEVTOOLS_EXTENSION__());

export default store;